<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 15-7-8
 * Time: 下午11:50
 */

namespace Application\Base;


class mdlConnection extends \LibConnection
{
    /**
     * 处理时间
     * @param string $format
     */
    function filterTime($format = "Y-m-d H:i:s")
    {
        $this->each(function (&$info) use ($format) {
            if ($info['dateline']) {
                $info['dateline'] = date($format, $info['dateline']);
            }
        });
    }
} 